package com.atguigu.edu2021.mock.log;

import com.atguigu.mock.util.RanOpt;
import com.atguigu.mock.util.RandomBox;
import com.atguigu.mock.util.RandomNum;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class AppStart   {

    @Builder.Default
    private String entry=new RandomBox<String>(new RanOpt<String>("install", 5),
            new RanOpt<String>("icon", 75),
            new RanOpt<String>("notice", 20) ).getRandStringValue();//入口：  安装后进入=install，  点击图标= icon，  点击通知= notice
    @Builder.Default
    private Long open_ad_id= RandomNum.getRandInt(1,20)+0L;//开屏广告Id
    @Builder.Default
    Integer open_ad_ms=RandomNum.getRandInt(1000,10000) ;//开屏广告持续时间
    @Builder.Default
    private Integer open_ad_skip_ms= RandomBox.builder().add(0,50).add(RandomNum.getRandInt(1000,100000) ,50).build().getRandIntValue();//开屏广告点击掉过的时间  未点击为0
    @Builder.Default
    private Integer loading_time=RandomNum.getRandInt(1000,20000);//加载时长：计算下拉开始到接口返回数据的时间，（开始加载报0，加载成功或加载失败才上报时间）
    @Builder.Default
    private Integer  first_open=RandomNum.getRandInt(0,1);


}
